//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================
#ifndef __MOUSE_DATA_H__
#define __MOUSE_DATA_H__

//typedef union {
//    uint32_t    i;      /* quick compare      */
//    uint8_t     u[3];   /* Pick one at a time */
//} MouseData;

typedef struct DECL_PACKED _touch_data {
    short dir;
    short x;
    short y ;
}TOUCH_DATA;

// touchscreen type
enum TouchType
{
    MOUSEMOTION,
    MOUSEBUTTONUP,
    MOUSEBUTTONDOWN
};

//mouse status
#define YOVERFLOW      0x88
#define XOVERFLOW      0x48
#define YSIGNBIT       0x28
#define XSIGNBIT       0x18
#define MBUTTON        0x0c
#define RBUTTON        0x0a
#define LBUTTON        0x09

#endif //__MOUSE_DATA_H__
